import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui'
Vue.use(ElementUI)
import 'element-ui/lib/theme-chalk/index.css'

/** 懒加载图片 */
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
	preLoad: 1.3,
	error: require('@/assets/send_img.png'),
	loading: require('@/assets/loading.gif'),
	attempt: 1
})
import PreviewImages from '@/components/PreviewImages'
Vue.component('preview-images', PreviewImages)

/** 常用flex组件 */
import { Flexbox, FlexboxItem } from '@/components/flexbox'
import Gridbox from '@/components/gridbox'
import SelectLimit from '@/components/form/fields/selectLimit'
Vue.component('flexbox', Flexbox)
Vue.component('flexbox-item', FlexboxItem)
Vue.component('gridbox', Gridbox)
Vue.component('select-limit', SelectLimit)

import '@/styles/index.scss' // 全局样式

Vue.config.productionTip = false
new Vue({
	router,
	store,
	render: (h) => h(App)
}).$mount('#app')

// Recorder.start({
// 	channel: 'rbjx-fwzb-pc',
// 	compress: true,
// 	testServer: 'https://service.aiins.cn/insurance/api/open/putJsonV2'
// })
